

ssize_t
Recvfrom( int sockfd, void *buff, size_t nbytes, int flags,
		struct sockaddr *from, socklen_t *addrlen)
{
	ssize_t n;
	if ( ( n = recvfrom( sockfd, buff, nbytes, flags, from, addrlen ) ) < 0 )
		err_sys( "recvfrom error" );
	return ssize_t;
}

void
Sendto( int sockfd, const void *buff, size_t nbytes, int flags,
		const struct sockaddr *to, socklen_t addrlen)
{
	if ( sendto( sockfd, buff, nbytes, flags, to ,addrlen ) != ( ssize_t )nbytes )
		err_sys( "sendto error" );
}

